package com.ruoyi.applet.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 搜索历史记录对象 search_history
 * 
 * @author ruoyi
 * @date 2024-11-19
 */
public class SearchHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 搜索唯一标识 */
    private Long searchId;

    /** 用户id */
    private Long searchUsrId;

    /** 搜索内容 */
    private String searchText;

    /** 搜索时间 */
    private Date searchCreateTime;

    /** 过期时间 */
    private Date searchExceedTime;

    public void setSearchId(Long searchId) 
    {
        this.searchId = searchId;
    }

    public Long getSearchId() 
    {
        return searchId;
    }
    public void setSearchUsrId(Long searchUsrId) 
    {
        this.searchUsrId = searchUsrId;
    }

    public Long getSearchUsrId() 
    {
        return searchUsrId;
    }
    public void setSearchText(String searchText) 
    {
        this.searchText = searchText;
    }

    public String getSearchText() 
    {
        return searchText;
    }
    public void setSearchCreateTime(Date searchCreateTime) 
    {
        this.searchCreateTime = searchCreateTime;
    }

    public Date getSearchCreateTime() 
    {
        return searchCreateTime;
    }
    public void setSearchExceedTime(Date searchExceedTime) 
    {
        this.searchExceedTime = searchExceedTime;
    }

    public Date getSearchExceedTime() 
    {
        return searchExceedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("searchId", getSearchId())
            .append("searchUsrId", getSearchUsrId())
            .append("searchText", getSearchText())
            .append("searchCreateTime", getSearchCreateTime())
            .append("searchExceedTime", getSearchExceedTime())
            .toString();
    }
}
